<?php 
/* 
Plugin Name: show Counterize Stats Widgets
Plugin URI: http://www.silkrt.com
Description: counterizeII widget
Author: marc lin
Version: 1
Author URI: http://www.silkrt.com
*/ 
function showCounterizeStats() 
{ 
if(function_exists(counterize_return_first_hit)){
echo('<ul><li>從.'.counterize_return_first_hit().'</li>');
echo('<li>今.'.counterize_gethitstoday().'</li>');
echo('<li>全.'.counterize_getamount().'</li>'); 
echo('<li><a href="'.get_bloginfo('url').'/about/count" target="_self">詳</a>.</li></ul></li>');
}else{
echo('CounterizeII disabled');
}
}
 
function widget_showCounterizeStats() { 
?>
<li class=counterzie_widget><h2 class="widgettitle">計 Count</h2>  

<?php if(function_exists(showCounterizeStats)){
showCounterizeStats();
} ?> 
<?php
}

 function showCounterizeStats_init() { 
register_sidebar_widget(__('showCounterizeStats'), 'widget_showCounterizeStats'); 
} 
add_action("plugins_loaded", "showCounterizeStats_init"); 
?>